const express = require('express');

var server = express();

//目录1：/user
var routeUser = express.Router();

routeUser.get('/1.html',function(req,res){
    res.send('user1');
})
routeUser.get('/2.html',function(req,res){
    res.send('user222');
})
server.use('/user',routeUser);
//目录2：/article
var articleRouter = express.Router();

articleRouter.get('/1001.html',function(req,res){
    res.send('1011111');
})

server.use('/article',articleRouter);

server.listen(8080);
